extends Node2D

@onready var animation = $AnimatedSprite2D

func _ready():
	# 加载时播放动画
	animation.play("death")
	animation.connect("animation_finished", animationFinish)

'''
	动画播放完毕, 删除动画效果
'''
func animationFinish():
	queue_free()
